#include "QtMapWidget.h"

QtMapWidget::QtMapWidget()
{
}

QtMapWidget::~QtMapWidget()
{
}


void QtMapWidget::Setup()
{
	QGraphicsItem *ball = new QGraphicsEllipseItem(0, 0, 20, 20);

/*	QTimeLine *timer = new QTimeLine(5000);
	timer->setFrameRange(0, 600);

	QGraphicsItemAnimation *animation = new QGraphicsItemAnimation;
	animation->setItem(ball);
	animation->setTimeLine(timer);

	animation->setPosAt(0, QPointF(0, 0));
	animation->setPosAt(1, QPointF(200, 200));

	QGraphicsScene *scene = new QGraphicsScene();
	scene->setSceneRect(0, 0, 250, 250);*/
	addToGroup(ball);

	//effect.SetDuration(5000);
	//effect.SetEndPosition(QPointF(200,200));
	//effect.SetTarget(ball);
	//effect.Start();
}

